<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
<style>
	table {
		border-collapse: collapse;
		text-align: center;
	}
	td {
		border: 1px solid black;
		width: 100px;
	}
</style>
</head>
<body>
	<h1>栏目列表</h1>
	<a href="index.php?module=article&action=add">添加文章</a>
	<table>
		<tr>
			<td>序号</td>
			<td>栏目名称</td>
			<td>文章数目</td>
			<td>操作</td>
		</tr>
		{foreach $data as $k=>$v}
		<tr>
			<td>{$v.cat_id}</td>
			<td>{$v.cat_name}</td>
			<td>{$v.num}</td>
			<td><a href="index.php?module=category&action=del&id={$v.cat_id}">删除</a>
				| <a href="index.php?module=category&action=edit&id={$v.cat_id}">修改</a></td>
		</tr>
		{/foreach}
	</table>
</body>
</html>